﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace PrintingCore
{
    public class PrintText
    {
        private string ptext;       
        private Font pfont;
        private StringFormat paligntment;


        public string PText
        {
            get { return ptext; }
            set { ptext = value; }
        }

        public Font PFont
        {
            get { return pfont; }
            set { pfont = value; }
        }


        public StringFormat Paligntment
        {
            get { return paligntment; }
            set { paligntment = value; }
        }

        public PrintText()
        {
            ptext = string.Empty;
            pfont = new Font("Arial", 10);
            paligntment = new StringFormat();
            paligntment.Alignment = StringAlignment.Near;
        }

        public PrintText(string pText, Font pFront, StringAlignment pAlignment) 
        {
            this.ptext = pText;
            this.pfont = pFront;
            this.paligntment = new StringFormat();
            this.paligntment.Alignment = pAlignment;
        }

        public PrintText(string pText)
        {
            this.ptext = pText;
            pfont = new Font("Arial", 10);
            paligntment = new StringFormat();
            paligntment.Alignment = StringAlignment.Near;
        }

        public PrintText(string pText, StringAlignment pAlignment)
        {
            this.ptext = pText;
            pfont = new Font("Arial", 10);
            paligntment = new StringFormat();
            this.paligntment.Alignment = pAlignment;
        }
    }
}
